package com.alibaba.nacos.api.remote;

import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.api.remote.request.Request;
import com.alibaba.nacos.api.remote.response.Response;

public interface Requester {


    void asyncRequest(Request request,
                      RequestCallBack requestCallBack) throws NacosException;

    Response request(Request request,
                     long timeoutLills) throws NacosException;

    default void close() {
        // todo
    }

}
